package org.monster.context.core.request;

/**
 * dos请求
 *
 * @author Monster
 */
public class DosRequest {

    /**
     * 构造方法
     */
    public DosRequest() {
        super();
    }

    /**
     * 获取请求Uri
     *
     * @param uri uri
     * @return 请求Uri
     */
    public String getRequestURI(String uri) {
        int index = uri.indexOf(' ');
        if (index != -1) {
            String[] split = uri.split(".");
            for (String str : split) {
                if (str.equalsIgnoreCase("EnteringWebApp")) {
                    return "";
                } else if (str.equalsIgnoreCase("RemoveWebApp")) {
                    return "";
                } else if (str.equalsIgnoreCase("CompileWebApp")) {
                    return "";
                } else if (str.equalsIgnoreCase("CompiledInitWebApp")) {
                    return "";
                }
            }
        }
        return "";
    }

}
